package master;


import java.awt.GridLayout;

import javax.swing.JComponent;
import javax.swing.JPanel;

public class StretchBox extends JPanel {
    private static final long serialVersionUID = 1L;

    public StretchBox(JComponent ... c) {
	this.setLayout(new GridLayout(1,1));
	this.add(c);
	this.setOpaque(false);
    }

    private void add(JComponent[] c) {
	for (int i = 0; i < c.length; i++) {
	    this.add(c[i]);
	}
    }

}
